package chixing.day07.homwork;

//empNo,``empName、empBaseSalary，方法 calculateSalary()
public class MyEmployee {
    private int empNo;
    private String empName;
    private double empBalanceSalary;//基本工资

    public MyEmployee(){}
    public MyEmployee(int empNo, String empName, double empBalanceSalary) {
        this.empNo = empNo;
        this.empName = empName;
        this.empBalanceSalary = empBalanceSalary;
    }

    //calculateSalary() 返回员工工资
    public double calculateSalary(){
        return empBalanceSalary;
    }

    public int getEmpNo() {
        return empNo;
    }

    public void setEmpNo(int empNo) {
        this.empNo = empNo;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public double getEmpBalanceSalary() {
        return empBalanceSalary;
    }

    public void setEmpBalanceSalary(double empBalanceSalary) {
        this.empBalanceSalary = empBalanceSalary;
    }

    @Override
    public String toString() {
        return "MyEmployee{" +
                "empNo=" + empNo +
                ", empName='" + empName + '\'' +
                ", empBalanceSalary=" + empBalanceSalary +
                '}';
    }
}
